using RedRiver.Framework.XtraCommon.Models;
using RedRiver.Framework.XtraCommon.Templates;

namespace RedRiver.Framework.XtraCommon.FormHelper{
    public partial class NavBarInfoForm : XtraDialogForm{
        public NavBarInfoForm(){
            InitializeComponent();
        }

        public INavElementInfo EditValue{
            get { return navBarInfoControl1.EditValue; }
            set { navBarInfoControl1.EditValue = value; }
        }

        public void AddNew(){
            navBarInfoControl1.defaultBindingSource.AddNew();
        }
    }
}